/***************
 * Directory Statistics Panel
 */
AIR2.Directory.Statistics = function() {
    // TODO: create stats
    return new AIR2.UI.Panel({
        cls: 'air2-directory-stats',
        colspan: 1,
        title: 'Statistics',
        iconCls: 'air2-icon-stats',
        storeData: AIR2.Directory.STATS,
        tpl: new Ext.XTemplate(
            '<tpl for=".">' +
              '<h3>Newest Users:</h3>' +
              '<tpl for="new_users">' +
                '<div class="newuser">{[AIR2.Format.userName(values, true)]}' +
                ' - {[AIR2.Format.userOrgShort(values.UserOrg[0])]}</div>' +
              '</tpl>' +
              '<br/><h3>Newest Organizations:</h3>' +
              '<tpl for="new_orgs">' +
                '<div class="neworg">{[AIR2.Format.orgNameLong(values, true)]}' +
                ' - {user_count} Users</div>' +
              '</tpl>' +
            '</tpl>'
        )
    });
}